package cn.sdstudio.entity;
import cn.sdstudio.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)
@TableName("relic_item")
public class RelicItem  extends BaseEntity {

    @NotBlank(message = "标题不能为空")
    private String title;
    private String name;
    @NotBlank(message = "描述不能为空")
    private String description;
    private String coverImage;
    @NotBlank(message = "内容不能为空")
    private String content;
    @TableField("browse_count")
    private Long browseCount;

    @TableField("unearthed_time")
    private String unearthedTime;

    private String status;
    private String material;

    private String siteId;
}
